import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

public class WordCount {

    public class XMapper extends Mapper<LongWritable, Text,Text, OrderBean>{

        @Override
        protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {


            Text k = new Text("hello");
            context.write(k,new OrderBean("o1",16.78));
        }
    }

    public class XReducer extends Reducer<Text, OrderBean,Text, IntWritable> {

        @Override
        protected void reduce(Text k, Iterable<OrderBean> values, Context context) throws IOException, InterruptedException {

        }
    }

    public static void main(String[] args) throws IOException {

        Job job = Job.getInstance();

        job.setMapOutputKeyClass(Text.class);
        job.setMapOutputValueClass(OrderBean.class);

    }



}
